import("../g_vars");
const mongoose = require('mongoose');

import config  from '../config';
import Storage from './storage';



let db =  mongoose.createConnection(config.storage.dbUrl + '/' + config.storage.dbName);
//let db =  mongoose.createConnection("mongodb://hlf:hua4231@wan.dev:27017/bigfin?authMechanism=SCRAM-SHA-1&authSource=bigfin");
let storage = new Storage(db,global.logger);


export default storage;